package com.twl.app.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = "SAL_DES_KEY")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_SAL_DES_KEY", allocationSize = 1)
public class SalDesKey {

	private Integer id;// 主键
	private String desKey; // 密钥
	private String desEffective; // 1:生效,0:失效
	private String isDelete; // 1:删除,0:未删除
	private Integer version; // 版本号
	private Date createTime; // 创建时间
	private String creator; // 创建人
	private Date modifyTime; // 修改时间
	private String modifier; // 修改人
	private String remark; // 备注

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "instance_sequence")
	@Column(name = "ID")
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "DES_KEY")
	public String getDesKey() {
		return this.desKey;
	}

	public void setDesKey(String desKey) {
		this.desKey = desKey;
	}

	@Column(name = "DES_EFFECTIVE")
	public String getDesEffective() {
		return this.desEffective;
	}

	public void setDesEffective(String desEffective) {
		this.desEffective = desEffective;
	}

	@Column(name = "IS_DELETE")
	public String getIsDelete() {
		return this.isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "CREATOR")
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "MODIFY_TIME")
	public Date getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Column(name = "MODIFIER")
	public String getModifier() {
		return this.modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
